import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
      /*  Scanner sc=new Scanner(System.in);
        double s=0;
        int n=0;
        s=2*(n*10);
        double temp = ((double) s * 9) / 5.0 + 32;
        do { s=2*(n*10);
             temp = ((double) s * 9) / 5.0 + 32;
            System.out.printf("[第%d条：]摄氏温度：%.0f,对应的华氏温度：%.2f\n",n,s,temp);
            n++;
        }while (n<10&&s<=250);*/
       /* int n=(int)(Math.random()*100);//Math.random 生成一个随机的0.0~1.0的double数字
        Scanner Sum=new Scanner(System.in);

            while (true){
                int sum=Sum.nextInt();
                if (sum < n) {
                    System.out.println("猜小了");
                } else if (sum > n) {
                    System.out.println("猜大了");
                }
                else
                {
                    System.out.println("恭喜你猜对了");break;
                }
            }*/
        Scanner s = new Scanner(System.in);
        int x = s.nextInt();
        int y = s.nextInt();
        int sum;
        for (int i = 1; i <=x; i++) {
            for (int j = 1; j <= i; j++) {
                System.out.printf("%d*%d=%d ", j, i,j*i);
            }
            System.out.printf("\n");
        }


    }
}
